package com.slipper.system.codeless.bo;

import java.util.ArrayList;
import java.util.List;

import com.slipper.common.bo.CommonBO;

/**
 * 页面组件信息表
 */
public class PageCompBO extends CommonBO {
    public static final String TYPE_TABLE = "表格";
    public static final String TYPE_FORM = "表单";
    public static final String TYPE_PAGE = "页面";
    public static final String TYPE_VISUAL = "可视化";

    public static final String TREE_MAPPING_TYPE_ONE = "一对多";
    public static final String TREE_MAPPING_TYPE_MULTI = "多对多";

    /* 主键ID */
    private String id;
    /* 主键ID */
    private String[] ids;
    /* 页面ID */
    private String[] pageIds;
    private String pageId;
    private String name;
    private String showComp;
    private String autoHeight;
    /* 类型： table：表格 form：表单 page：页面 */
    private String type;
    private String dataPageId;
    /* 数据源类型： 数据模型 */
    private String dataType;
    /* 数据模型ID */
    private String dataModelId;
    /* 表单ID */
    private String dataFormId;
    /* 表格ID */
    private String dataTableId;
    /* 显示树控件 */
    private String showTree;
    private String treeName;
    private Integer treeWidth;
    /* 树数据模型ID */
    private String treeDataModelId;
    /* 树节点字段ID */
    private String treeNodeFieldId;
    private String treeNodeFieldName;
    /* 树父节点字段ID */
    private String treeParentFieldId;
    private String treeParentFieldName;
    /* 树显示字段ID */
    private String treeShowFieldId;
    /* 树排序字段ID */
    private String treeOrdinalFieldId;
    /* 树操作表单ID */
    private String treeFormId;
    /* 树新增脚本ID */
    private String treeAddScriptId;
    /* 树编辑脚本ID */
    private String treeEditScriptId;
    /* 树删除脚本ID */
    private String treeDeleteScriptId;
    private String showRefresh;
    private String pageSelected;

    private String treeMappingType;
    private String treeOutputFieldId;
    private String treeOutputFieldName;
    private String filterFieldId;
    private String middleModelId;
    private String middleInputFieldId;
    private String middleInputFieldName;
    private String middleOutputFieldId;
    private String recursiveQuery;
    private String advanceQuery;
    private String buttonWrap;

    /* 可视化配置 */
    private String visualJson;
    /* 排序 */
    private Integer ordinal;
    /* 更新人ID */
    private String updateId;
    /* 更新时间 */
    private Long updateTime;
    /* 创建人ID */
    private String createId;
    /* 创建时间 */
    private Long createTime;

    private List<PageCompParamBO> paramList = new ArrayList<>();
    private List<PageCompButtonBO> buttonList = new ArrayList<>();
    private List<PageCompFilterBO> filterList = new ArrayList<>();
    private List<PrivilegeBO> privilegeList = new ArrayList<>();

    public void setId(String id) {
        this.id = id;
    }
    
    public String getId() {
        return id;
    }

    public void setIds(String[] ids) {
        this.ids = ids;
    }
    
    public String[] getIds() {
        return ids;
    }

    public String[] getPageIds() {
        return pageIds;
    }

    public void setPageIds(String[] pageIds) {
        this.pageIds = pageIds;
    }

    public void setPageId(String pageId) {
        this.pageId = pageId;
    }
    
    public String getPageId() {
        return pageId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getShowComp() {
        return showComp;
    }

    public void setShowComp(String showComp) {
        this.showComp = showComp;
    }

    public String getAutoHeight() {
        return autoHeight;
    }

    public void setAutoHeight(String autoHeight) {
        this.autoHeight = autoHeight;
    }

    public void setType(String type) {
        this.type = type;
    }
    
    public String getType() {
        return type;
    }

    public String getDataPageId() {
        return dataPageId;
    }

    public void setDataPageId(String dataPageId) {
        this.dataPageId = dataPageId;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }
    
    public String getDataType() {
        return dataType;
    }

    public void setDataModelId(String dataModelId) {
        this.dataModelId = dataModelId;
    }
    
    public String getDataModelId() {
        return dataModelId;
    }

    public void setDataFormId(String dataFormId) {
        this.dataFormId = dataFormId;
    }
    
    public String getDataFormId() {
        return dataFormId;
    }

    public void setDataTableId(String dataTableId) {
        this.dataTableId = dataTableId;
    }
    
    public String getDataTableId() {
        return dataTableId;
    }

    public void setShowTree(String showTree) {
        this.showTree = showTree;
    }
    
    public String getShowTree() {
        return showTree;
    }

    public String getTreeName() {
        return treeName;
    }

    public void setTreeName(String treeName) {
        this.treeName = treeName;
    }

    public Integer getTreeWidth() {
        return treeWidth;
    }

    public void setTreeWidth(Integer treeWidth) {
        this.treeWidth = treeWidth;
    }

    public String getShowRefresh() {
        return showRefresh;
    }

    public void setShowRefresh(String showRefresh) {
        this.showRefresh = showRefresh;
    }

    public String getPageSelected() {
        return pageSelected;
    }

    public void setPageSelected(String pageSelected) {
        this.pageSelected = pageSelected;
    }

    public String getTreeDataModelId() {
        return treeDataModelId;
    }

    public void setTreeDataModelId(String treeDataModelId) {
        this.treeDataModelId = treeDataModelId;
    }

    public String getTreeNodeFieldId() {
        return treeNodeFieldId;
    }

    public void setTreeNodeFieldId(String treeNodeFieldId) {
        this.treeNodeFieldId = treeNodeFieldId;
    }

    public String getTreeParentFieldId() {
        return treeParentFieldId;
    }

    public void setTreeParentFieldId(String treeParentFieldId) {
        this.treeParentFieldId = treeParentFieldId;
    }

    public String getTreeNodeFieldName() {
        return treeNodeFieldName;
    }

    public void setTreeNodeFieldName(String treeNodeFieldName) {
        this.treeNodeFieldName = treeNodeFieldName;
    }

    public String getTreeParentFieldName() {
        return treeParentFieldName;
    }

    public void setTreeParentFieldName(String treeParentFieldName) {
        this.treeParentFieldName = treeParentFieldName;
    }

    public String getTreeShowFieldId() {
        return treeShowFieldId;
    }

    public void setTreeShowFieldId(String treeShowFieldId) {
        this.treeShowFieldId = treeShowFieldId;
    }

    public String getTreeOrdinalFieldId() {
        return treeOrdinalFieldId;
    }

    public void setTreeOrdinalFieldId(String treeOrdinalFieldId) {
        this.treeOrdinalFieldId = treeOrdinalFieldId;
    }

    public String getTreeFormId() {
        return treeFormId;
    }

    public void setTreeFormId(String treeFormId) {
        this.treeFormId = treeFormId;
    }

    public String getTreeAddScriptId() {
        return treeAddScriptId;
    }

    public void setTreeAddScriptId(String treeAddScriptId) {
        this.treeAddScriptId = treeAddScriptId;
    }

    public String getTreeEditScriptId() {
        return treeEditScriptId;
    }

    public void setTreeEditScriptId(String treeEditScriptId) {
        this.treeEditScriptId = treeEditScriptId;
    }

    public String getTreeDeleteScriptId() {
        return treeDeleteScriptId;
    }

    public void setTreeDeleteScriptId(String treeDeleteScriptId) {
        this.treeDeleteScriptId = treeDeleteScriptId;
    }

    public String getTreeMappingType() {
        return treeMappingType;
    }

    public void setTreeMappingType(String treeMappingType) {
        this.treeMappingType = treeMappingType;
    }

    public String getTreeOutputFieldId() {
        return treeOutputFieldId;
    }

    public void setTreeOutputFieldId(String treeOutputFieldId) {
        this.treeOutputFieldId = treeOutputFieldId;
    }

    public String getTreeOutputFieldName() {
        return treeOutputFieldName;
    }

    public void setTreeOutputFieldName(String treeOutputFieldName) {
        this.treeOutputFieldName = treeOutputFieldName;
    }

    public String getFilterFieldId() {
        return filterFieldId;
    }

    public void setFilterFieldId(String filterFieldId) {
        this.filterFieldId = filterFieldId;
    }

    public String getMiddleModelId() {
        return middleModelId;
    }

    public void setMiddleModelId(String middleModelId) {
        this.middleModelId = middleModelId;
    }

    public String getMiddleInputFieldId() {
        return middleInputFieldId;
    }

    public void setMiddleInputFieldId(String middleInputFieldId) {
        this.middleInputFieldId = middleInputFieldId;
    }

    public String getMiddleInputFieldName() {
        return middleInputFieldName;
    }

    public void setMiddleInputFieldName(String middleInputFieldName) {
        this.middleInputFieldName = middleInputFieldName;
    }

    public String getMiddleOutputFieldId() {
        return middleOutputFieldId;
    }

    public void setMiddleOutputFieldId(String middleOutputFieldId) {
        this.middleOutputFieldId = middleOutputFieldId;
    }

    public String getRecursiveQuery() {
        return recursiveQuery;
    }

    public void setRecursiveQuery(String recursiveQuery) {
        this.recursiveQuery = recursiveQuery;
    }

    public String getAdvanceQuery() {
        return advanceQuery;
    }

    public void setAdvanceQuery(String advanceQuery) {
        this.advanceQuery = advanceQuery;
    }

    public String getButtonWrap() {
        return buttonWrap;
    }

    public void setButtonWrap(String buttonWrap) {
        this.buttonWrap = buttonWrap;
    }

    public String getVisualJson() {
        return visualJson;
    }

    public void setVisualJson(String visualJson) {
        this.visualJson = visualJson;
    }

    public void setOrdinal(Integer ordinal) {
        this.ordinal = ordinal;
    }
    
    public Integer getOrdinal() {
        return ordinal;
    }

    public void setUpdateId(String updateId) {
        this.updateId = updateId;
    }
    
    public String getUpdateId() {
        return updateId;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }
    
    public Long getUpdateTime() {
        return updateTime;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }
    
    public String getCreateId() {
        return createId;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }
    
    public Long getCreateTime() {
        return createTime;
    }

    public List<PageCompParamBO> getParamList() {
        return paramList;
    }

    public void setParamList(List<PageCompParamBO> paramList) {
        this.paramList = paramList;
    }

    public List<PageCompButtonBO> getButtonList() {
        return buttonList;
    }

    public void setButtonList(List<PageCompButtonBO> buttonList) {
        this.buttonList = buttonList;
    }

    public List<PageCompFilterBO> getFilterList() {
        return filterList;
    }

    public void setFilterList(List<PageCompFilterBO> filterList) {
        this.filterList = filterList;
    }

    public List<PrivilegeBO> getPrivilegeList() {
        return privilegeList;
    }

    public void setPrivilegeList(List<PrivilegeBO> privilegeList) {
        this.privilegeList = privilegeList;
    }
}
